package com.shenzw.common.pojo;

import com.shenzw.common.aop.anno.Desensitization;
import com.shenzw.common.coonstants.DesensitizationTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 测试 pojo
 *
 * @author shenzw
 * @date 2024/3/4
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class TestPojo {

    /**
     * 手机号
     */
    @Desensitization(type = DesensitizationTypeEnum.MOBILE_PHONE)
    private String phone;

    /**
     * 密码
     */
    @Desensitization(type = DesensitizationTypeEnum.PASSWORD)
    private String password;

    /**
     * 地址
     */
    @Desensitization(type = DesensitizationTypeEnum.MY_RULE, startInclude = 0, endExclude = 3)
    private String address;
}
